
# Public Opinion Quarterly: Replication files ##################################

Software requirements: R version 4.5.1 (2025-06-13 ucrt)

Always run the start file first (1_IRT Start.R or 1_PredVal_Start.R). It ensures that all dependencies are executed in the correct order. Ensure that all of your files are in the same folder (or set to the same directory) to ensure that the start file runs smoothly. The numbers in front of each file name represents the order in which they should be executed in the start files.

# RAW DATA #####################################################################
data_interest: Split-half 1 for Construct Validity (Exploratory Analysis, EA)
data_interest_split2: Split-half 2 Construct Validity(Confirmatory Analysis, CA)
data_interest_split1_covariates: Split-half 1 for Predictive Validity (EA)
data_interest_split2_covariates: Split-half 2 for Predictive Validity (CA)


# CONSTRUCT VALIDITY ###########################################################
Start with the file:
## "1_IRT Start.R": start file for construct validity analyses

Other files for construct validity include:
## "2_IRT_processdata.R": process raw data for construct validity analyses
## "3_IRT_modelspec.R": specify all IRT models
## "4_IRT_analysis.R" fit analyses with tables
## "5_IRT_describe_items.R": descriptives of scale items
## "6_IRT_lollipop.R": Figure 2: Item parameters 
## "7_IRT_ItemInfoCurves.R": Figures A1 & A2: Item information curves

# PREDICTIVE VALIDITY ##########################################################
Start with the file:
## "1_PredVal_Start.R": start file for predictive validity analyses

Other files for predictive validity include:
## "2_PredVal_EA_processdata.R": process raw data for predictive validity exploratory analysis
## "3_PredVal_CA_processdata.R": process raw data for predictive validity confirmatory analysis & meta-analysis 
## "4_PredVal_EA_interactionmodels.R": Predictive Validity Exploratory Analysis: Models with data frame for heatmap and regression table
## "5_PredVal_CA_interactionmodels.R": Predictive Validity Confirmatory Analysis: Models with data frame for heatmap and regression table
## "6_PredVal_META_interactionmodels.R": Predictive Validity Meta Analysis: Models with data frame for heatmap and regression table
## "7_PredVal_power.R": power analysis for 3-way interaction models
## "8_PredVal_contrast.R": all contrasts with tables
## "9_PredVal_describe_sample.R": dscriptives of sample 
## "10_PredVal_describe_outcome.R": descriptives of outcomes 
## "11_PredVal_alpha.R": reliability of scales used for outcomes 
## "12_PredVal_Figure_3_frames.R": data frames for Figure 3
## "13_PredVal_Figure_3.R": Figure 3

Additional files on social-psychological correlates of PPIS and NPIS:
## "14_Profile_interactionmodels.R": three-way interactions of demographics and personality with identity
## "15_Profile_Figure 4.R": Figure 4



